﻿using System;
using System.Collections.Generic;

using System.Text;

namespace System.Qizx.Xml
{
    /*******************************/
    /// <summary>
    /// Manages the target where the result of the transformation will be saved.
    /// </summary>
    public class SaxResult : BasicResult
    {
        private string id;
        private XmlSaxContentHandler handler;
        private XmlSaxLexicalHandler lexHandler;

        /// <summary>
        /// Basic Constructor for the class.
        /// </summary>
        public SaxResult()
        {
            id = "";
            handler = null;
            lexHandler = null;
        }

        /// <summary>
        ///  Gets and sets the Id of the SaxResultSupport instance.
        /// </summary>
        public virtual string Id
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }

        /// <summary>
        ///  Gets and sets the XmlSaxContentHandler of the SaxResultSupport instance.
        /// </summary>
        public virtual XmlSaxContentHandler Handler
        {
            get
            {
                return this.handler;
            }
            set
            {
                this.handler = value;
            }
        }

        /// <summary>
        ///  Gets and sets the XmlSaxLexicalHandler of the SaxResultSupport instance.
        /// </summary>
        public virtual XmlSaxLexicalHandler LexHandler
        {
            get
            {
                return this.lexHandler;
            }
            set
            {
                this.lexHandler = value;
            }
        }

        /// <summary>
        /// Creates a new instance of SaxResultSupport, with the specified XmlSaxContentHandler.
        /// </summary>
        /// <param name="Handler">The XmlSaxContentHandler to be used.</param>
        public SaxResult(XmlSaxContentHandler Handler)
        {
            this.handler = Handler;
        }
    }
}
